import { createHashRouter } from 'react-router'
import MainLayout from '../pages/Layout'
import Task from '../pages/Tasks'
import Note from '../pages/Note'
import Mind from '../pages/MindMap'
import { BookOutlined, ApartmentOutlined, CheckSquareOutlined } from '@ant-design/icons'
export const router = createHashRouter([
  {
    path: '/',
    Component: MainLayout,
    children: [
      {
        index: true,
        Component: Note,
        handle: { name: 'Note', title: '笔记本', icon: BookOutlined, showFolderSider: true }
      },
      {
        path: '/mindmap',
        Component: Mind,
        handle: { name: 'Mind', title: '思维导图', icon: ApartmentOutlined, showFolderSider: true }
      },
      {
        path: '/tasks',
        Component: Task,
        handle: { name: 'Task', title: '待办事项', icon: CheckSquareOutlined }
      }
    ]
  }
])
